//
//  ProjectDetailCtrl.m
//  laowu
//
//  Created by 尹桥印 on 15/4/24.
//  Copyright (c) 2015年 长沙市岳麓区立早网络科技有限公司. All rights reserved.
//

#import "ProjectDetailCtrl.h"

@interface ProjectDetailCtrl ()
@property (weak, nonatomic) IBOutlet UILabel *infoOuthLabel;
@property (weak, nonatomic) IBOutlet UILabel *buildByCompanyLabel;
@property (weak, nonatomic) IBOutlet UILabel *addressLabel;
@property (weak, nonatomic) IBOutlet UILabel *buildAreaLabel;
@property (weak, nonatomic) IBOutlet UILabel *buildStartTime;
@property (weak, nonatomic) IBOutlet UILabel *signingThing;
@property (weak, nonatomic) IBOutlet UILabel *personRequirementsLabel;
@property (weak, nonatomic) IBOutlet UILabel *paymentAwayLabel;
@property (weak, nonatomic) IBOutlet UILabel *projectSituationLabel;

@property(nonatomic,strong)ProjectInfoResult *result;
@end

@implementation ProjectDetailCtrl

+(instancetype)initWithProjectInfo:(ProjectInfoResult *)result{
    ProjectDetailCtrl *object = [[ProjectDetailCtrl alloc]init];
    object.result  = result;
    return object;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = self.result.name;
    [self.projDetailView setCornerRadius:5 borderWidth:1 borderColor:HEXColor(@"#dfdfdf")];
    [self.projInfoView setCornerRadius:5 borderWidth:1 borderColor:HEXColor(@"#dfdfdf")];
    [self initData];
}
-(void)initData{
    [_infoOuthLabel setText:_result.is_auth];
    [_buildByCompanyLabel setText:_result.cheng_jian_fang];
    [_addressLabel setText:_result.name];
    [_buildAreaLabel setText:_result.area];
    [_buildStartTime setText:_result.open_date];
    [_signingThing setText:_result.sign_status];
    [_personRequirementsLabel setText:_result.labor_requirements];
    [_paymentAwayLabel setText:_result.settlement_requirements];
    [_projectSituationLabel setText:_result.des];
}

@end
